Home
last modified time | relevance | path

Searched hist:"28 c5609fb236807910ca347ad3e26c4567998526" (Results 1 – 1 of 1) sorted by relevance

/linux/mm/
H A Dmmap.cdiff 28c5609fb236807910ca347ad3e26c4567998526 Tue Oct 11 18:08:37 CEST 2022 Liam Howlett <liam.howlett@oracle.com> mm/mmap: preallocate maple nodes for brk vma expansion

If the brk VMA is the last vma in a maple node and meets the rare criteria
that it can be expanded, then preallocation is necessary to avoid a
potential fs_reclaim circular lock issue on low resources.

At the same time use the actual vma start address (unaligned) when calling
vma_adjust_trans_huge().

Link: https://lkml.kernel.org/r/20221011160624.1253454-1-Liam.Howlett@oracle.com
Fixes: 2e7ce7d354f2 (mm/mmap: change do_brk_flags() to expand existing VMA and add do_brk_munmap())
Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
Reported-by: Yu Zhao <yuzhao@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>